package org.zhenglide.oa.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

@TableName("a_employee")
public class Employee extends Model<Employee> {
  
	@TableId(value="id",type=IdType.AUTO)
	 Integer id;
	@TableField("name")
	String name;
	 String password;
	 String email;
	 String role;
	 @TableField("manager_id")
	 Integer managerId;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	public Integer getManagerId() {
		return managerId;
	}
	public void setManagerId(Integer managerId) {
		this.managerId = managerId;
	}
	public Employee() {
	}
	public Employee(Integer id, String name, String password, String email, String role, Integer managerId) {
		this.id = id;
		this.name = name;
		this.password = password;
		this.email = email;
		this.role = role;
		this.managerId = managerId;
	}
	@Override
	protected Serializable pkVal() {
		// TODO Auto-generated method stub
		return this.getId();
	}
	 
	 
	 
	
	
}
